function foo(){
    bool = "小飞飞"
}
foo()
console.log(bool); //打印出来